<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			document.write("<table border='1'>")	
			for(var l=1;l<=9;l++){
				document.write("<tr>")
				for(var m=1;m<=l;m++){
					document.write("<td>"+l+"*"+m+"="+(l*m)+"</td>")
				}
				
				document.write("</tr>")
			}
		document.write("</table>")	
			document.write("<table border='1'>")
				for(var o=9;o>0;o--){
					//控制水平方向的循环
					document.write("<tr>")
						for(var p=1;p<=o;p++){
							document.write("<td>"+o+"*"+p+"="+o*p+"</td>")
						}
					document.write("</tr>")
				}
			document.write("</table>")
		</script>
	</body>
</html>
